class SplunkDataBean {
  SplunkDataBean({
    this.pageNum,
    this.total,
    this.list,
    this.isFirstPage,
    this.isLastPage,
    this.pages,
  });

  SplunkDataBean.fromJson(dynamic json) {
    pageNum = json['pageNum'];
    pages = json['pages'];
    total = json['total'];
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(SplunkListItem.fromJson(v));
      });
    }
    isFirstPage = json['isFirstPage'];
    isLastPage = json['isLastPage'];
  }
  num? pageNum;
  num? pages;
  num? total;
  List<SplunkListItem>? list;
  bool? isFirstPage;
  bool? isLastPage;
}

class SplunkListItem {
  SplunkListItem({
    this.id,
    this.app,
    this.owner,
    this.riskLevel,
    this.totalEvents,
    this.resultsLink,
    this.searchName,
    this.sid,
    this.createdTime,
  });

  SplunkListItem.fromJson(dynamic json) {
    id = json['id'];
    app = json['app'];
    owner = json['owner'];
    riskLevel = json['riskLevel'];
    totalEvents = json['totalEvents'];
    resultsLink = json['resultsLink'];
    searchName = json['searchName'];
    sid = json['sid'];
    createdTime = json['createdTime'];
  }
  num? id;
  String? app;
  String? owner;
  String? riskLevel;
  String? totalEvents;
  String? resultsLink;
  String? searchName;
  String? sid;
  String? createdTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['app'] = app;
    map['owner'] = owner;
    map['riskLevel'] = riskLevel;
    map['totalEvents'] = totalEvents;
    map['resultsLink'] = resultsLink;
    map['searchName'] = searchName;
    map['sid'] = sid;
    map['createdTime'] = createdTime;
    return map;
  }
}
